package com.tianpengtech.common.model.taskscreenshot;

import com.tianpengtech.common.model.AbstractBaseModel;
import com.tianpengtech.common.model.fairauth.FairAuth;

/**
 * 实体类名-任务截图表 fair_task_screenshot
 *
 * @since Fri Nov 17 17:03:03 HKT 2017
 */
public class TaskScreenShot extends AbstractBaseModel<TaskScreenShot> {

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;
	public static final TaskScreenShot dao = new TaskScreenShot();

	public static final String ID = "id"; //
	public static final String TASK_ID = "task_id"; // 任务id
	public static final String FAIR_ID = "fair_id"; // 网红id
	public static final String CREATE_TIME = "create_time"; // 创建时间
	public static final String IMG = "img"; // 截图地址
	public static final String TYPE = "type"; // 截图类型

	public String type() {
		String result = "空";
		if (getInt(TYPE) == FairAuth.TYPE_WEIBO) {
			result = "新浪微博";
		} else if (getInt(TYPE) == FairAuth.TYPE_WEIXIN) {
			result = "微信";
		} else if (getInt(TYPE) == FairAuth.TYPE_QQ) {
			result = "QQ";
		}
		return result;
	}

	@Override
	public String tableName() {
		return "fair_task_screenshot";
	}

}